//
//  Advertise.m
//  智慧小区
//
//  Created by lab603 on 15/7/13.
//  Copyright (c) 2015年 Dreamsoul. All rights reserved.
//

#import "Advertise.h"

@implementation Advertise
+ (NSDictionary *)replacedKeyFromPropertyName{
    return @{@"ID" : @"id"};
}
- (id)initWithCoder:(NSCoder *)decoder{
    self = [super init];
    if (!self) {
        return nil;
    }
    _ID = [decoder decodeObjectForKey:@"ID"];
    _startTime = [decoder decodeObjectForKey:@"startTime"];
    _dueTime= [decoder decodeObjectForKey:@"dueTime"];
    _type = [decoder decodeObjectForKey:@"type"];
    _picture = [decoder decodeObjectForKey:@"picture"];
    _texts = [decoder decodeObjectForKey:@"texts"];
    _responsiblePerson = [decoder decodeObjectForKey:@"responsiblePerson"];
    _responsiblePersonName = [decoder decodeObjectForKey:@"responsiblePersonName"];
    _hypelink = [decoder decodeObjectForKey:@"hypelink"];
    return self;
}

- (void)encodeWithCoder:(NSCoder *)encoder{
    [encoder encodeObject:_ID forKey:@"ID"];
    [encoder encodeObject:_startTime forKey:@"startTime"];
    [encoder encodeObject:_dueTime forKey:@"dueTime"];
    [encoder encodeObject:_type forKey:@"type"];
    [encoder encodeObject:_picture forKey:@"picture"];
    [encoder encodeObject:_texts forKey:@"texts"];
    [encoder encodeObject:_responsiblePerson forKey:@"responsiblePerson"];
    [encoder encodeObject:_responsiblePersonName forKey:@"responsiblePersonName"];
    [encoder encodeObject:_hypelink forKey:@"hypelink"];
}

@end
